package com.igeek.boot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @package com.igeek.boot.entity
 * @Description 返回结果封装类
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/12/7 20:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {
    //状态码
    private Integer code;
    //提示信息
    private String msg;
    //封装的数据
    private T data;

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
